import React, { Component } from 'react'
import {withRouter} from 'react-router-dom'
class WithRouterTest extends Component {
    render() {
        console.log(this.props,'可以在非路由中注入路由对象');
        return (
            <div>
                test组件
            </div>
        )
    }
}
export default withRouter(WithRouterTest)